//
//  BaseViewController.h
//  HiMaster3
//
//  Created by jinghao on 15/12/11.
//  Copyright © 2015年 jinghao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SlideNavigationController.h"
//#import "BaseViewModel.h"
#import "MBProgressHUD.h"
#import "UserClient.h"
#import "IQKeyboardManager.h"
#import "SendMessageView.h"
#import "ShareDataView.h"
@interface BaseViewController : UIViewController<SlideNavigationControllerDelegate,sendSuccessDelegate>


@property (nonatomic, strong)MasterUrlManager *urlManager;
@property (nonatomic, strong, readonly) BaseViewModel *viewModel;
@property (nonatomic, strong, readonly) UserClient *userClient;
@property (nonatomic,strong,readonly)UITextField *searchTitleView;
@property (nonatomic,assign)BOOL selectMessageType;
@property (nonatomic)BOOL hiddenTabbar;
@property (nonatomic)BOOL showLeftMenu;
@property (nonatomic, assign)BOOL isCallHelp;
/**
 *  返回按钮标题
 */
@property (nonatomic,strong)NSString* backTitle;
/**
 *  控制返回是否可用
 *
 *  @return YES 可以返回，NO不可以返回
 */
- (BOOL)canGotoBack;

- (void)gotoBack;

- (void)gotoBack:(BOOL)animated viewControllerName:(NSString*)viewControllerName;

- (void)addHeaderAndFooterViews:(UIScrollView*)scrollView;
- (void)addHeaderView:(UIScrollView*)scrollView;
- (void)addFooterView:(UIScrollView*)scrollView;

- (void)showLoadingFailView:(BOOL)show;

- (BOOL)doLogin;
//- (BOOL) canLocation;
//- (BOOL)doCertification;

- (void)showUserCenter:(id)sender;
- (NSString *)getSavePath;
- (void)showHelpImageView:(NSString*)imageName;

- (void)bindViewModel;
- (void)pushViewControllerFrom:(NSString*)viewControllerName viewController:(UIViewController*)viewController animated:(BOOL)animated;

- (void)pushViewControllerWithUrl:(NSString*)url;
- (void)pushViewControllerWithUrl:(NSString*)url callback:(ViewControlerCallback)callback;

- (void)showPhonesActionSheet;
- (void)callPhonesActionSheet:(NSString*)phones;
//-(void)showShareAlertWith:(NSString *)name And:(NSString *)img content:(NSMutableDictionary *)content;
- (void)showRequestErrorMessage:(BaseModel*)model;
- (NSString*)getPathByFileNameWithType:(NSString *)_type;
-(void) setmobileText:(NSString *)mobile AndNameText:(NSString *)name;
-(void)showMessageView:(NSArray *)phones title:(NSString *)title body:(NSString *)body;
//-(void)pushToScene:(NSString *)storyName And:(NSString *)viewController;
//-(void)addContactFrom;

-(void) sendMessageToSb:(id)sbInfo bytype:(NSInteger )type;

-(void) addShareDataViewToSbWithShareData:(id)shareData;

-(void)textFiledEditChanged:(NSNotification *)obj;

//添加用户行为日志
- (void)addUserBehaviourString:(NSString*)str;

//隐藏导航栏最底下的线条
//- (UIImageView *)findHairlineImageViewUnder:(UIView *)view;

//-(void)suspendWindowWithItem:(UIView*)item;
@end
